<template>
  <div class="HomePage">
    <router-view></router-view>
    <van-tabbar v-model="active">
      <van-tabbar-item to="/page" icon="wap-home-o">首页</van-tabbar-item>
      <van-tabbar-item to="/house" icon="search">找房</van-tabbar-item>
      <van-tabbar-item to="/mation" icon="newspaper-o">资讯</van-tabbar-item>
      <van-tabbar-item to="/mylogin" icon="user-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
import { login } from "@/api/user";
export default {
  name: "HomePage",
  components: {},
  props: {},
  data() {
    return {
      active: 0,
      page: {
        username: "",
        password: "",
      },
    };
  },
  computed: {},
  watch: {},
  created() {
    const data = login(this.page);
    console.log(data);
  },
  methods: {},
};
</script>

<style scoped></style>
